package erp.server.base.response;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum StatusCode {
    OPERATION_FAILED(400, "操作失败"),
    OPERATION_SUCCESS(200,"操作成功"),

    ORGANIZATION_NAME_EXIST(2100, "组织已存在"),
    ORGANIZATION_INACTIVE(2110,"组织未激活"),
    VALIDATE_ERROR(2200, "请求参数错误"),


    // 消息模块状态
    OPERATION_MESSAGE_SUCCESS(1020,"消息操作成功"),
    OPERATION_MESSAGE_FAILED(1040,"消息操作失败"),
    OPERATION_MESSAGE_NOT_FIND(1110,"该id消息不存在"),
    OPERATION_MESSAGE_NO_CONTENT(1111,"该消息内容不存在,已创建空内容字段"),


    //用户模块状态码
    LOGIN_SUCCESS(1001 , "登录成功"),
    PASSWORD_ERROR(1002 , "密码错误"),
    USERNAME_DOES_NOT_EXIST(1003 , "用户名不存在"),
    ;

    //状态码、状态码描述
    private Integer code;
    private String msg;
}